//
//  ZCSamplingOKCell.m
//  zctx
//
//  Created by apple on 16/1/29.
//  Copyright © 2016年 sanliang. All rights reserved.
//

#import "ZCSamplingOKCell.h"

@implementation ZCSamplingOKCell

- (void)awakeFromNib {
    // Initialization code
    self.nameLable.textColor = [UIColor colorWithHexString:@"#000000"];
    
    self.productiondataLable.textColor = [UIColor colorWithHexString:@"#8a8a8a"];
}


-(void)setSamplingOKModel:(ZCInvolvedModel *)samplingOKModel{
    _samplingOKModel = samplingOKModel;
    
    
    //名称
    self.nameLable.text =[NSString stringWithFormat:@"%@",samplingOKModel.pjname];
    
    //生产日期/批号
    if (samplingOKModel.batch.length>0) {
        self.productiondataLable.text = [NSString stringWithFormat:@"生产日期/批号:%@",samplingOKModel.batch];
    }else{
        self.productiondataLable.text =@"生产日期/批号:";
    }
    NSURL *url =[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",[NetworkManager strURLBasic],samplingOKModel.thumb]];
    [self.ImageView sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"placehold_involved"]];
    
    //合格
    [self.stateImgView setImage:[UIImage imageNamed:@"search_yes"]];
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
